package gggameserver.dbaccess;

import gggameserver.GGGameServerGameResult;
import gggameserver.compiler.GGSolutionData;
import gggameserver.dbaccess.data.GGDBAGameInfo;

public interface GGDBAccess {

	public GGDBAGameInfo getNewGame();

	public GGSolutionData getSolutionData(long id);

	public GGSolutionData getSolutionDataByProgramId(long prog_id);
	
	public boolean submitGameResults(long p_game_id, long prog_1, long prog_2,
			Long prog_winner, GGGameServerGameResult ladderGame);

	public boolean setCompileResult(long prog_id, char result, String logdata);

	public void deleteAvailableGame(long p_game_id);

}
